#include <iostream>
using namespace std;
int main()
{
    long long a = 0, b = 0, c = 0;
    cin >> a >> b;
    if(a < b)
        swap(a,b);
    long long x = a * b;
    while (c = a % b)
    {
        a = b;
        b = c;
    }
    cout << x / b;
    return 0;
}